home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
spoc88
/
tbcoml
/
parmdemo.bas
< prev
Wrap
BASIC Source File
|
1988-06-22
|
1KB
|
31 lines
' Author: Duke Kamstra
' Mod. date: 5/8/88
'
' This program demonstrates the subroutines FNParamCount%() and
' FNParamStr$().
'
' Compilation instructions:
' I. In the Turbo Basic Integrated Development Environment:
' a. Load the program into the Turbo Basic editor.
' b. In the Options\Parameter line menu define a command
' line parameter list. For example:
' this is a "test parameter list"
' c. Press ALT-R to run the program in memory.
' II. From a .EXE file:
' a. Load the program into the Turbo Basic editor.
' b. In the Options\Compile to menu select EXE file.
' c. Press ALT-C to compile PARAM.BAS to PARAM.EXE.
' d. Press ALT-F Q to leave the Turbo Basic Integrated
' Development Environment.
' e. At the DOS command line type:
' PARAM this is a "test parameter list"
$INCLUDE "PARAM" ' Include the command line parameter routines
CLS
PRINT FNParamCount%;" parameters were passed to PARMDEMO"
PRINT "The parameters are:"
FOR I% = 1 TO FNParamCount%
PRINT "Parameter# ";I%,FNParamStr$(I%)
NEXT I%